<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/order.js"></script>
<title>添加搜索脚本</title>
<body class="withvernav">
<div class="bodywrapper">
 {{include file='/public/leftmenu.tpl'}}
    <div class="centercontent">
    
       <div class="pageheader notab">
            <h1 class="pagetitle">添加搜索脚本</h1>
            <span class="pagedesc">说明：1.查询注意事项：勾中反选即不包含后面设定的条件，例如国家选择：美国；勾中反选即所有不为美国的国家．<br>
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2.设置物流方式注意事项：条件配置好后，选择最下方的物流方式，点击增加按钮，那么订单查询条件新增完毕，并且该查询条件下的订单的物流方式也会匹配为您选择的物流方式。 </span>
            <div class="menulist">
        		<ul class="profile_summary">
                        
                    </ul>
               </div>
        </div><!--pageheader-->
        	
        <div id="contentwrapper" class="contentwrapper">
        	
        	<div id="basicform" class="subcontent">
					<form class="stdform stdform2"  id="theFrom" method="post" action="/order/saveordersearch">
                    	
                    	
                    	 <p>
                        	<label>名称</label>
                            <span class="field">
                          <input type="text" name="name" id="name" class="width100" value="{{$detail.name}}">
                          <span id="namerr"></span>
                            </span>
                        </p>
                         <p>
                        	<label>国家
                       	    </label>
                            <span class="field">
                           
                          <textarea name="country"  id="countryid0" cols="8" rows="5">{{$detail.country}}</textarea>
                          <span><br>  <INPUT name="countryflag" value="1" {{if $detail.countryflag==1}} checked{{/if}} type="checkbox" >
                       	    反选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" onClick="selectCountry(0)"><font color="#003399">选择国家</font></a></span>
                          </span>
                        </p>
                          <p>
                        	<label>店铺</label>
                            <span class="field">
                            <textarea name="shopname"  id="shopnameid" cols="5" rows="5">{{$detail.shopname}}</textarea>
                         	<span><br>  <INPUT name="shopflag" value="1"  {{if $detail.shopflag==1}} checked{{/if}} type="checkbox" >
                       	    反选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" onClick="selectShop()"><font color="#003399">选择店铺</font></a></span>
                            </span>
                        </p>
                          <p>
                        	<label>商品编号</label>
                            <span class="field">
                        	 <textarea name="goodsno" id="goodsno" cols="5" rows="5">{{$detail.goodsno}}</textarea><br>
                            <INPUT name="goodsnoflag" value="1"  {{if $detail.goodsnoflag==1}} checked{{/if}} type="checkbox" > 反选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#003399">(多个SKU以分号间隔)</font></span>
                            </span>
                        </p>
                          <p>
                        	<label>包裹重量	 </label>
                            <span class="field"> &nbsp;&nbsp;&nbsp;<INPUT name="weightflag" {{if $detail.weightflag==1}} checked{{/if}} value="1"  type="checkbox" > 
                           反选 &nbsp;&nbsp;&nbsp;
                          <input type="text" name="weight1" id="weight1" class="width100" value="{{$detail.weight1}}"> - 
                          <input type="text" name="weight2" id="weight2" class="width100" value="{{$detail.weight2}}"> 克
                          </span>
                          </p>
                         <p>
                       	   <label>金额	</label>
                            <span class="field">&nbsp;&nbsp;&nbsp;<INPUT name="amountflag" {{if $detail.amountflag==1}} checked{{/if}} value="1"  type="checkbox" > 
                           反选&nbsp;&nbsp;&nbsp;
                          <input type="text" name="amount1" id="amount1" class="width100" value="{{$detail.amount1}}"> -
                          <input type="text" name="amount2" id="amount2" class="width100" value="{{$detail.amount2}}"> RMB
                           &nbsp;&nbsp;&nbsp; <INPUT id="ordermoneyflag" name="ordermoneyflag" {{if $detail.ordermoneyflag==1}} checked{{/if}} value="1"  type="checkbox">
                        含运费</span>
                        </p>
                         <p>
                        	<label>运费收入 	</label>
                            <span class="field">
                            &nbsp;&nbsp;&nbsp;<INPUT name="freightflag" {{if $detail.freightflag==1}} checked{{/if}} value="1"  type="checkbox" > 
                           反选&nbsp;&nbsp;&nbsp;
                          <input type="text" name="freight1" id="freight1" class="width100" value="{{$detail.freight1}}"> -
                          <input type="text" name="freight2" id="freight2" class="width100" value="{{$detail.freight2}}"> RMB
                           </span>
                        </p>
                         <p>
                        	<label>订单状态	</label>
                            <span class="field">
                            <INPUT name="orderstatus[]" {{if in_array('1',$detail.orderstatus)}} checked{{/if}} value="1" type="checkbox">
                            新订单、
                            <INPUT name="orderstatus[]" {{if in_array('2',$detail.orderstatus)}} checked{{/if}} value="2" checked type="checkbox">
                            已支付、
                            <INPUT name="orderstatus[]" {{if in_array('3',$detail.orderstatus)}} checked{{/if}} value="3" type="checkbox">
                            配货中、
                            <INPUT name="orderstatus[]" {{if in_array('4',$detail.orderstatus)}} checked{{/if}} value="4" type="checkbox">
                            已发货、
                            <INPUT name="orderstatus[]" {{if in_array('5',$detail.orderstatus)}} checked{{/if}} value="5" type="checkbox">
                            已完成、
                            <INPUT name="orderstatus[]" {{if in_array('6',$detail.orderstatus)}} checked{{/if}} value="6" type="checkbox">
                        作废
                            </span>
                        </p>
                         <p>
                       	   <label>订单时间	</label>
                            <span class="field">
                       	   <INPUT name="ordertime" value="1" {{if $detail.ordertime==1}} checked{{/if}} type="radio">
                       	   一天内、
                           <INPUT name="ordertime" value="3" {{if $detail.ordertime==3}} checked{{/if}} type="radio">
                           三天内、
                           <INPUT name="ordertime" value="7" {{if $detail.ordertime==7}} checked{{/if}} type="radio">
                           七天内、
                           <INPUT name="ordertime" value="30" {{if $detail.ordertime==30}} checked{{/if}} type="radio">
                          
                           三十天内 <br><br> <A onClick="return cancel('ordertime');"><font color="#003399">取消</font></A>
                           </span>
                           </p>
                       <p>
                            <label>是否包含定制商品	</label>
                            <span class="field">
                           <INPUT name="isfactory" value="1" {{if $detail.isfactory==1}} checked{{/if}} type="radio">
                       	   包含
                           <INPUT name="isfactory" value="2" {{if $detail.isfactory==2}} checked{{/if}} type="radio">
                           不包含
                            </span>
                        </p>
                        <p>
                       	  <label>匹配物流方式	</label>
                            <span class="field">
                            <SELECT id="logisticsID" name="logisticsID" width="200">
                             <OPTION value="">---请匹配物流方式---</OPTION>
                             {{foreach from=$express item=li key=key}}
                              <OPTION value="{{$li.id}}" {{if $detail.logisticsID==$li.id}}selected{{/if}}>{{$li.name}}</OPTION>
                              {{/foreach}}
                              </SELECT>
                            </span>
                        </p>
                         <p>
                        	<label>优先级选择	</label>
                             <span class="field">
                        	<SELECT id="filed13" name="filed13" width="200">
                        	  <OPTION value="9999">---请选择优先级---</OPTION>
                        	  <OPTION {{if $detail.priority==0 && $detail.id >0}} selected{{/if}}  value="0">---一级---</OPTION>
                        	  <OPTION {{if $detail.priority==1}} selected{{/if}} value="1">---二级---</OPTION>
                        	  <OPTION {{if $detail.priority==2}} selected{{/if}} value="2">---三级---</OPTION>
                        	  <OPTION {{if $detail.priority==3}} selected{{/if}} value="3">---四级---</OPTION>
                        	  <OPTION {{if $detail.priority==4}} selected{{/if}} value="4">---五级---</OPTION>
                        	  <OPTION {{if $detail.priority==5}} selected{{/if}} value="5">---六级---</OPTION>
                        	  <OPTION {{if $detail.priority==6}} selected{{/if}} value="6">---七级---</OPTION>
                        	  <OPTION {{if $detail.priority==7}} selected{{/if}} value="7">---八级---</OPTION>
                        	  <OPTION {{if $detail.priority==8}} selected{{/if}} value="8">---九级---</OPTION>
                        	  <OPTION  {{if $detail.priority==9}} selected{{/if}} value="9">---十级---</OPTION>
                      	  </SELECT>
                        	(一级优先匹配，十级最后匹配)
                            	<span id="filed13err"></span>
                            </span>
                            </p>
                        <p class="stdformbutton">
                        	<span >
                            <input type="hidden" name="id" value="{{$detail.id}}" id="id">
                            <button type="button" class="submit radius2" id="btn" onClick="saveproduct()">保存</button></span>
                        </p>
                    </form>
					
                    <br />

            </div><!--subcontent-->
            
            <!--subcontent-->
        
        </div><!--contentwrapper-->
        
	</div><!-- centercontent -->
    
    
</div><!--bodywrapper-->





</body>
</html>
